import { AppConfig } from 'remax/wechat'

const config: AppConfig = {
  pages: [
    'pages/promotion-list/index',
    'pages/promotion/index',
    'pages/order-list/index',
    'pages/vote-event/index',
    'pages/vote-entry/index',
  ],
  window: {
    navigationBarBackgroundColor: '#f6f6f6',
    navigationBarTextStyle: 'black',
    navigationBarTitleText: '蜗大郎',
    backgroundColor: '#f6f6f6',
    backgroundTextStyle: 'light',
  },
  tabBar: {
    color: '#7a7e83',
    selectedColor: '#ff5112',
    backgroundColor: '#ffffff',
    list: [
      {
        pagePath: 'pages/promotion-list/index',
        text: '周边活动',
        iconPath: '/images/promotion.png',
        selectedIconPath: '/images/promotion-selected.png',
      },
      {
        pagePath: 'pages/order-list/index',
        text: '我的订单',
        iconPath: '/images/order.png',
        selectedIconPath: '/images/order-selected.png',
      },
    ],
  },
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于附近对象的获取',
    },
  },
}

export default config
